-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for single file hubs #34
Conversation
it's just a dev dep, and it's easier than writing an if statement or our
own assert function. what's the big deal?
…On Mon, Apr 3, 2023 at 11:29 AM Colin Diesh ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/raStanza.test.ts
<#34 (comment)>:
> @@ -179,6 +179,7 @@ describe('RaStanza reader', () => {
const input = 'key1 value1\nkey2 value2\nkey3\n'
const stanza = new RaStanza(input)
let updatedValue = stanza.get('key2')
+ assert(updatedValue)
can we avoid using the 'assert' library?
—
Reply to this email directly, view it on GitHub
<#34 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASAFNPNNXXFX25NJERZPDW7MJHBANCNFSM6AAAAAAWRVVL2M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
we don't use |
the assert is there pretty much just for TS. jest expect isn't understood
by typescript to stop execution of the function like assert is, for
whatever reason.
I removed the dev dep on assert, is that ok?
…On Mon, Apr 3, 2023 at 11:42 AM Colin Diesh ***@***.***> wrote:
we don't use assert in any of our other libraries currently as far as I
know, so it's a little out of place to me, and it seems like it can instead
use a jest 'expect' type statement instead? it is also a node built-in, but
it is being installed as an npm module
https://www.npmjs.com/package/assert
—
Reply to this email directly, view it on GitHub
<#34 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAASAFPRAASITQDURTPVTVDW7MKYFANCNFSM6AAAAAAWRVVL2M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
if you can add a comment saying why it is there (e.g. the typescript thing) it may help future readers, but otherwise it is fine |
0e81296
to
fe0a131
Compare
let's get this one going :) |
No description provided.